/*******************************************************************************
 * Copyright (c) 2008 Nels E. Beckman.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Nels E. Beckman - initial API and implementation
 *******************************************************************************/
package edu.cmu.cs.nbeckman.wptranslator;

/**
 * This class currently represents all types of line breaks. Later
 * we may distinguish between hard and soft.
 * 
 * @author Nels Beckman
 */
public class LineBreak implements Element {

	private static final LineBreak LB = new LineBreak();
	
	private static final String NEW_LINE = System.getProperty("line.separator");

	
	public static LineBreak singleton() {
		return LB;
	}
	
	@Override
	public String drawAsHTML() {
		return "<br>";
	}

	@Override
	public String drawAsRTF() {
		return "\\par" + NEW_LINE;
	}

}
